/*
 * @Date: 2022-03-04 11:07:17
 * @LastEditors: 春贰
 * @gitee: https://gitee.com/chun22222222
 * @github: https://github.com/chun222
 * @Desc: 
 * @LastEditTime: 2022-03-09 17:24:14
 * @FilePath: \web\src\api\module\autocode.js
 */

import http from '../http'

const Api = { 
  tableList: '/autocode/tablelist', 
  tableFields: '/autocode/tablefields',
  permissionDir : '/autocode/permissiondir',
  create: '/autocode/create', 
  remove:'/autocode/remove'
}

export const remove = data => {
  return http.request({
    url: Api.remove,
    data: data,
    method: 'post'
  })
} 

/// autocode
export const create = data => {
  return http.request({
    url: Api.create,
    data: data,
    method: 'post'
  })
} 
/// tableList
export const tableList = data => {
  return http.request({
    url: Api.tableList,
    data: data,
    method: 'post'
  })
} 

/// tableFields
export const tableFields = data => {
  return http.request({
    url: Api.tableFields,
    data: data,
    method: 'post'
  })
} 


/// tableFields
export const permissionDir = data => {
  return http.request({
    url: Api.permissionDir,
    data: data,
    method: 'post'
  })
} 